package com.fruit.pojo.account.rebaterule;

import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 返利规则POJO
 * @author Administrator
 * @version 2018.01.08 10:16
 */
public class RebateRule implements Serializable {
    private Integer id;

    private BigDecimal oneLevelRebate;

    private BigDecimal twoLevelRebate;

    private String startTime;

    private String endTime;

    private String state;

    private String rebateType;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public BigDecimal getOneLevelRebate() {
		return oneLevelRebate;
	}

	public void setOneLevelRebate(BigDecimal oneLevelRebate) {
		this.oneLevelRebate = oneLevelRebate;
	}

	public BigDecimal getTwoLevelRebate() {
		return twoLevelRebate;
	}

	public void setTwoLevelRebate(BigDecimal twoLevelRebate) {
		this.twoLevelRebate = twoLevelRebate;
	}

	public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getRebateType() {
        return rebateType;
    }

    public void setRebateType(String rebateType) {
        this.rebateType = rebateType == null ? null : rebateType.trim();
    }
    @Override
    public String toString() {
    	StringBuffer str = new StringBuffer();
    	str.append("[");
    	str.append("id = " + id);
    	str.append(",oneLevelRebate = " + oneLevelRebate);
    	str.append(",twoLevelRebate = " + twoLevelRebate);
    	str.append(",startTime = " + startTime);
    	str.append(",endTime = " + endTime);
    	str.append(",state = " + state);
    	str.append(",rebateType = " + rebateType);
    	str.append("]");
    	
    	return str.toString();
    }
}